package com.wn.cleandemo.junk.bean;

import androidx.annotation.Nullable;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

/**
 * 文件类型，增加混淆破解难度
 */
public class JunkCache extends BaseJunk {
    //应用缓存
    public JunkCache(@Nullable File file, int junkType) {
        super(file, junkType);
    }

    protected String pkgName;
    protected String appName;
    protected long pkgMD5;
    protected long typeId;
    protected String linkPathIdsStr;
    protected List<JunkCacheItem> pathItems = new ArrayList<>();

    @Override
    public boolean DoCleanJUnk() {
        if (null != pathItems) {
            for (JunkCacheItem pathItem : pathItems) {
                pathItem.DoCleanJUnk();
            }
        }
        return true;
    }

    public String getPkgName() {
        return pkgName;
    }

    public void setPkgName(String pkgName) {
        this.pkgName = pkgName;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public long getPkgMD5() {
        return pkgMD5;
    }

    public void setPkgMD5(long pkgMD5) {
        this.pkgMD5 = pkgMD5;
    }

    public long getTypeId() {
        return typeId;
    }

    public void setTypeId(long typeId) {
        this.typeId = typeId;
    }

    public String getLinkPathIdsStr() {
        return linkPathIdsStr;
    }

    public List<JunkCacheItem> getPathItems() {
        return pathItems;
    }

    public void setPathItems(List<JunkCacheItem> pathItems) {
        this.pathItems = pathItems;
    }

    public void setLinkPathIdsStr(String linkPathIdsStr) {
        this.linkPathIdsStr = linkPathIdsStr;
    }
}
